package com.gimi.cloud.jimi.merchantZone.consumer.feign;


import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import com.gimi.cloud.jimi.dto.product.ProductSkuDto;

import feign.Headers;

@FeignClient(name = "jimi-merchantZone-service")
public interface SkuFeignService {

	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/sku/list", method = RequestMethod.POST)
	Response listSku(@RequestBody ProductSkuDto pdd);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/sku/update", method = RequestMethod.POST)
	Response saveSku(@RequestBody List<ProductSkuDto> list);

	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/sku/status", method = RequestMethod.POST)
	Response getProductStatus(@RequestBody String prodId);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/sku/deleteOne", method = RequestMethod.POST)
	Response deleteSku(@RequestBody ProductSkuDto dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/sku/skuImg", method = RequestMethod.POST)
	Response skuImg(@RequestBody ProductSkuDto dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/sku/getSkuModelDetail", method = RequestMethod.POST)
	Response SkuModelDetail(@RequestBody ProductSkuDto dto);
}
